<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
    <title><%= title %> - Microblog</title>
    <link rel='stylesheet' href='/stylesheets/bootstrap.css' />
    <style type="text/css">
        body {
            padding-top: 60px;
            padding-bottom: 40px;
        }
    </style>
    <link href="stylesheets/bootstrap.css" rel="stylesheet">
</head>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top">
    <div class="container">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="/">Microblog</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
            <ul class="nav navbar-nav navbar-right">
                <li class="active"><a href="/">首页</a></li>
                <li><a href="/login">登入</a></li>
                <li><a href="/reg">注册</a></li>
            </ul>
        </div>
    </div>
</nav>
<div id="container" class="container">
    <div id="nametip"></div>

        <form class="form-horizontal" method="post">
       <fieldset>
        <legend>用户注册</legend>
        <div class="control-group">
            <label class="control-label" for="username">用户名</label>
            <div class="controls">
                <input type="text" class="input-xlarge" id="username" name="username" onchange="checkuser()">
                <p class="help-block" >你的账户名称，用于登录和显示。 </p>

            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="password">口令</label>
            <div class="controls">
                <input type="password" class="input-xlarge" id="password" name="password">
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="password-repeat">重复输入口令</label>
            <div class="controls">
                <input type="password" class="input-xlarge" id="password-repeat"
                       name="password-repeat">
            </div>
        </div>
        <div class="form-actions">
            <button type="button" onclick="sumbit()"  class="btn btn-primary">注册</button>
        </div>
           <input type="hidden" id="flag" value="false">
    </fieldset>
</form>

        <hr />
        <footer>
            <p><a href="http://www.byvoid.com/" target="_blank">yzw</a> 2012</p>
        </footer>
    </div>
</body>

<script src="/javascripts/jquery.js"></script>
<script src="/javascripts/bootstrap.js"></script>
<script src="/javascripts/reg.js"></script>
</html>